

# _key = '~!@#$%^&*()_+=-}{][;|?/.,><`0:123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPLKJHGFDSAZXCVBNM'
_key = 'V</+X+,$?Uhv?{./BkK;</n8W!`@*CI;+%:K|`)~h[>4A{9vm>^/_k-|)w0@?(:8@|,`zk$^]`jirv/#}Rj.%^@w)-%ozXV|`=bJ7[}P{*,%qe5~3^[;2}{!a?|#-r^()LiK})#$bJK-@$]pb[+#iu,|!G3|ANs!0Ec.]-~'

def encode(passward):
    encry_str = ""
    for i, j in zip(passward, _key):
        encry_str += chr((ord(i)+ord(j)))
    encry_str = _key[len(encry_str)] + encry_str + _key[len(encry_str)+1]
    return encry_str

def decode(encry_passward):
    dec_str = ""
    num_list = []
    for i in encry_passward[1:-1]:
        num_list.append(ord(i))
    for i, j in zip(num_list, _key):
        temp = chr(int(i) - ord(j))
        dec_str = dec_str+temp
    return dec_str
